export const getFormSchema = (): FormSchema => ({
    formItem: [
        {
            type: 'input',
            label: '类型名称',
            field: 'name',
            value: '',
            props: {
                maxLength: 100,
                placeholder: '请输入类型名称'
            },
            rules: [
                {
                    required: true,
                    message: '类型名称不能为空'
                }
            ]
        },
        {
            type: 'input',
            label: '唯一编码',
            field: 'code',
            value: '',
            props: {
                placeholder: '请输入唯一编码',
                maxLength: 50
            },
            rules: [
                {
                    required: true,
                    message: '唯一编码不能为空'
                }
            ]
        },
        {
            type: 'input-number',
            label: '排序',
            field: 'sort',
            value: '',
            props: {
                placeholder: '请输入排序',
                max: 9999,
                min: 0
            },
            rules: [
                {
                    required: true,
                    message: '排序不能为空'
                }
            ]
        },
        {
            type: 'textarea',
            label: '备注',
            field: 'remark',
            value: '',
            props: {
                placeholder: '备注信息',
                maxLength: 255
            }
        }
    ]
})
